#ifndef ITEMMODEL_H
#define ITEMMODEL_H

#include "core/basemodel.h"
#include "core/suppliermodel.h"

class ItemModel : public BaseModel
{
public:
    ItemModel();

    QString getName();
    void setName(QString name);

    QString getCode();
    void setCode(QString code);

    SupplierModel *getSupplier();
    void setSupplier(SupplierModel *supplier);

    float getSrp();
    void setSrp(float srp);

    int getNumStocks();
    void setNumStocks(int numStocks);

    bool isActive();
    void setActive(bool active);

private:
    QString name;
    QString code;
    SupplierModel *supplier;
    float srp;
    int numStocks;
    bool active;
};

#endif // ITEMMODEL_H
